package com.huakai.springenv.aspect;

import com.huakai.springenv.service.RedisService;

import java.beans.PropertyEditorSupport;

public class AdvanceServiceEditor extends PropertyEditorSupport {
    @Override
    public void setValue(Object value) {
        if (value instanceof RedisService) {
            super.setValue(new AdvanceService());
        }else {
            throw new IllegalArgumentException("value must be RedisService");
        }
    }
}
